#ifndef NIBBLES_H
#define NIBBLES_H

#include <QApplication>
#include <QDialog>
#include <QLabel>
#include <QTimer>
#include <QTime>
#include <QList>
#include <QKeyEvent>
#include <QMessageBox>
#include <QKeyEvent>

enum Direction {D_UP , D_DOWN , D_LEFT , D_RIGHT};
class Nibbles : public QDialog
{
    Q_OBJECT
private:
    QLabel * food;
    QList<QLabel *> snake;
    Direction dire;
    int footLen;
    int maxLen;
    QTimer *timer;
public:
    Nibbles();
    ~Nibbles();
    QLabel * getFood();
    void keyPressEvent(QKeyEvent *);
public slots:
    void snakeMove();
};

#endif // NIBBLES_H
